<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Edit Product</title>
        <LINK REL=StyleSheet HREF="<?php echo base_url().'/css/mockup.css';?>"/>
    </head>
    <body>
        <h1>Edit product</h1>
        <?php echo form_open('client_controller/product_edit', array('id' => 'product_edit')); echo form_hidden('id', $data['id']);?>
        <table align="center" cellspacing="10" cellpadding="0" width="900">
            <?php if (isset($status)) { if ($status === 'error') { ?>
                <tr>
                    <td colspan="2" align="center"><span style="color: red"><?php echo $message ?></span></td>
                </tr>
            <?php }} ?>
            <tr>
                <td>
                    Name:
                </td>
                <td>
                    <input type="text" name="name" value="<?php echo $data['name']; ?>" maxlength="90" tabindex="1" />
                    <span style="color: red"><?php echo form_error('name'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    Description:
                </td>
                <td>
                    <textarea name="description" rows="8" cols="30" tabindex="2"><?php echo $data['description']; ?></textarea>
                    <span style="color: red"><?php echo form_error('description'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    Price:
                </td>
                <td>
                    <input type="text" name="price" value="<?php echo $data['price']; ?>" maxlength="30" tabindex="3" />
                    <span style="color: red"><?php echo form_error('price'); ?></span>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" name="submit" value="Submit" tabindex="9" />
                </td>
            </tr>
            <tr>
                <td>
                    <h2><a href="<?php echo site_url().'/client_controller/dashboard';?>">To Dashboard...</a></h2>
                </td>
            </tr>
        </table>
        <?php echo form_close() ?>
    </body>
</html>
